/* 这里专门用来写用户请求验证码，请求注册，请求登录，请求退出 */
import request from "./request.js";
//获取手机验证码
export const reqCode = (phone) => request.get(`/user/passport/sendCode/${phone}`)
// 实现用户注册
export const reqRegister = (user) => request.post('/user/passport/register',user)
//实现用户登录 可以获取服务器发送过来的token
export const reqUserLogin = (user) =>request.post('/user/passport/login',user)
//通过token获取用户信息
export const reqGetUserInfo=()=>request.get('/user/passport/auth/getUserInfo')
//实现用户登出 
export const reqUserLogout=()=>request.get('/user/passport/logout')